Repository navigation
Delete the launcher's logs of an image with it - #270
Merged
Merged
Conversation
A delete removed the image's directory and left the launcher's logs of its starts behind for good. It now asks the launcher to delete them once the directory is gone, which needs pharo-launcher-mcp's deleteLaunchLogs, so the pin moves to the release that has it. A launcher that cannot be opened fails nothing: the image is gone, and the launcher's next start sweeps the logs of images that no longer exist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gabriel-Darbord
marked this pull request as ready for review
November 22, 2026 23:38
Gabriel-Darbord
force-pushed
the
launch-logs-are-pruned
branch
from
November 22, 2026 23:38
446cf58 to
2b185c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each start writes the VM's output to a pair of log files in the launcher's logs directory, and a delete removed the image's directory but never those, so they piled up for images long gone.
The launcher now bounds them itself: a start keeps the logs of its image's last starts and sweeps those of images the store no longer holds, and its own delete removes an image's logs. A delete here removes the directory itself, so it now calls the launcher's
deleteLaunchLogswith the image's name on disk once the directory is gone. A launcher that cannot be opened fails nothing: the image is gone, and the next start sweeps its logs.The logs a failed start names stay valid until two more starts of that image, or its delete. On upgrade, the first start sweeps every log of an image that no longer exists.